ARM: orion5x: fix use of callee-saved registers in lowloevel_init
authorMans Rullgard <[email protected]>
Mon, 7 May 2018 10:10:47 +0000 (11:10 +0100)
committerTom Rini <[email protected]>
Thu, 7 Jun 2018 13:12:26 +0000 (09:12 -0400)
commit66a00be2878dc0f972a6e100e91af5942ef8f736
treec2fcfc733a69508a06b450f4f6ada36d352e03c3
parent3eceff642c01e03e055127c9cf21608faaff28ac
ARM: orion5x: fix use of callee-saved registers in lowloevel_init

The lowlevel_init function uses r4 and r6 without preserving their
values as required by the AAPCS.  Use r0 and r2 instead as these
are call-clobbered.

Signed-off-by: Mans Rullgard <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
arch/arm/mach-orion5x/lowlevel_init.S